-- GENERATED SPELL FOR [Naxxramas Shade] --


function spell0_27824(pUnit, Event) --@Blink Strike,n/a--
pUnit:FullCastSpellOnTarget(49961,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27824', 638, 1)
end

function spell1_27824(pUnit, Event) --@Dark Strike,n/a--
pUnit:FullCastSpellOnTarget(38926,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27824', 509, 1)
end

function Sorts_27824(pUnit, Event)
local choix_sorts_27824 = math.random(0, 1)
if choix_sorts_27824 == 0 then
pUnit:RegisterEvent('spell0_27824', 1, 1)
end
if choix_sorts_27824 == 1 then
pUnit:RegisterEvent('spell1_27824', 1, 1)
end
end

function mob27824_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27824', math.random(1500, 3000), 1)
end

function mob27824_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27824_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27824_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27824, 1, 'mob27824_Action')
RegisterUnitEvent(27824, 2, 'mob27824_Leave')
RegisterUnitEvent(27824, 3, 'mob27824_Kill')
RegisterUnitEvent(27824, 4, 'mob27824_Die')
